import { memo } from "react";
import styles from "./toHome.module.scss";
import { useNavigate } from "react-router-dom";
let ToHome: React.FC = () => {
  let to = useNavigate();
  return (
    <>
      <div className={styles.home} onClick={() => to("/")}>
        <i className="iconfont icon-shouye"></i>
      </div>
    </>
  );
};
export default memo(ToHome);
